package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.business.dto.request.create.GoodsSubscribePackageCreateDto;
import com.molichuxing.services.infrastructure.dto.response.GoodsSubscribeMileageDto;

import java.util.List;
import java.util.Map;

/**
 * 单服务 订阅里程包表
 * @author xuelin yi
 */
public interface GoodsSubscribeMileageService extends RootService {

    /**
     * 根据商品id集合查询订阅里程包信息
     * @param goodsIds
     * @return
     */
    public Map<Integer, List<GoodsSubscribeMileageDto>> getGoodsSubscribeMileageById(List<Integer> goodsIds);

    /**
     * 根据商品id查询订阅里程包信息
     * @param goodsId
     * @return
     */
    public List<GoodsSubscribeMileageDto> getGoodsSubscribeMileageById(Integer goodsId);

    /**
     * 根据里程包id查询订阅里程包信息
     * @param packageId
     * @return
     */
    public GoodsSubscribeMileageDto getSubscribeMileageById(Integer packageId);

    /**
     * 新增商品id集合查询订阅里程包信息
     * @param createDto
     * @return
     */
    public int createGoodsSubscribeMileage(int goodsId, List<GoodsSubscribePackageCreateDto> createDto);
}
